<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="AsciiDoc 8.6.8" />
<link rel="Shortcut Icon" href="/images/favicon.ico" type="image/x-icon" />
<title></title>
<link rel="stylesheet" href="asciidoc-1.css" tppabs="http://old.peachfuzzer.com/v3/asciidoc.css" type="text/css" />
<link rel="stylesheet" href="website-1.css" tppabs="http://old.peachfuzzer.com/v3/website.css" type="text/css" />
</head>

<body>

<div id="layout-menu-box">
<div id="layout-menu">
  <div><a href="WhatIsPeach.html" tppabs="http://old.peachfuzzer.com/WhatIsPeach.html">What is Peach</a></div>
  <div><a href="Installation.html" tppabs="http://old.peachfuzzer.com/v3/Installation.html"><b>Installing</b></a></div>
  <div><a href="PeachQuickStart.html" tppabs="http://old.peachfuzzer.com/v3/PeachQuickStart.html"><b>Tutorials</b></a></div>
  <div><a href="Methodology.html" tppabs="http://old.peachfuzzer.com/Methodology.html">Methodology</a></div>
  <div><a href="Introduction.html" tppabs="http://old.peachfuzzer.com/Introduction.html">Introduction</a></div>
  <div><a href="Training.html" tppabs="http://old.peachfuzzer.com/Training.html">Training</a></div>
  <div><a href="javascript:if(confirm(%27http://www.dejavusecurity.com/peach.html  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://www.dejavusecurity.com/peach.html%27" tppabs="http://www.dejavusecurity.com/peach.html">Enterprise</a></div>
  <div><a href="FAQ.html" tppabs="http://old.peachfuzzer.com/v3/FAQ.html">FAQ</a></div>
  <div><a href="javascript:if(confirm(%27http://forums.peachfuzzer.com/forum.php  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://forums.peachfuzzer.com/forum.php%27" tppabs="http://forums.peachfuzzer.com/forum.php">Support Forums</a></div>

  <div><h5>Peach 3</h5></div>
  <div><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="PeachPit.html" tppabs="http://old.peachfuzzer.com/v3/PeachPit.html">Peach Pits</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="GeneralConfiguration.html" tppabs="http://old.peachfuzzer.com/v3/GeneralConfiguration.html">General Conf</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="DataModeling.html" tppabs="http://old.peachfuzzer.com/v3/DataModeling.html">Data Modeling</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="StateModel.html" tppabs="http://old.peachfuzzer.com/v3/StateModel.html">State Modeling</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="AgentsMonitors.html" tppabs="http://old.peachfuzzer.com/v3/AgentsMonitors.html">Agents</a></div>
  <div>&nbsp;&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="AgentsMonitors.html" tppabs="http://old.peachfuzzer.com/v3/AgentsMonitors.html">Monitors</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="TestConfig.html" tppabs="http://old.peachfuzzer.com/v3/TestConfig.html">Test</a></div>
        <div>&nbsp;&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="Publisher.html" tppabs="http://old.peachfuzzer.com/v3/Publisher.html">Publishers</a></div>
  <div>&nbsp;&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="Logger.html" tppabs="http://old.peachfuzzer.com/v3/Logger.html">Loggers</a></div>
  <!-- <div>&nbsp;<img src="/images/1.gif" /><a href="/v3/DebuggingPitFiles.html">Debugging Pits</a></div> -->
  <!-- <div>&nbsp;<img src="/images/1.gif" /><a href="/v3/ValidatingPitFiles.html">Validating Pits</a></div> -->
  <div><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="RunningPeach.html" tppabs="http://old.peachfuzzer.com/v3/RunningPeach.html">Running</a></div>
  <!-- <div><img src="/images/1.gif" /><a href="/v3/ParallelPeach.html">Parallel</a></div> -->
  <!-- <div><img src="/images/1.gif" /><a href="/v3/ExtendingPeach.html">Extending</a></div> -->
  <div><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="minset.html" tppabs="http://old.peachfuzzer.com/v3/minset.html">Minset</a></div>

  <div><h5><a href="peach23.html" tppabs="http://old.peachfuzzer.com/v2/peach23.html">Peach 2.3</a></h5></div>

  <div><hr/></div>

  <div><a href="License.html" tppabs="http://old.peachfuzzer.com/License.html">License</a></div>
</div>
</div>
<div id="layout-content-box">
<div id="layout-banner">
  <div id="layout-title">
    <a href="index.htm" tppabs="http://old.peachfuzzer.com/"><img src="peach_fuzzer.png" tppabs="http://old.peachfuzzer.com/images/peach_fuzzer.png" height="100" /></a>
    <a href="javascript:if(confirm(%27http://www.dejavusecurity.com/peach.html  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://www.dejavusecurity.com/peach.html%27" tppabs="http://www.dejavusecurity.com/peach.html" class="layout-inner-banner-right">
                <img height="50" src="dejavusecurity.png" tppabs="http://old.peachfuzzer.com/images/dejavusecurity.png" /></a>
  </div>

  <div id="layout-description">
  <script>
  (function() {
    var cx = '007028538774543840348:g-0dlrdlmxs';
    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:search></gcse:search>
      </div>
</div>
<div id="layout-content">
<div id="content">
<div class="sect1">
<h2 id="_action">Action</h2>
<div class="sectionbody">
<div class="paragraph"><p>Action elements perform various operations in the the StateModel. Actions are primarily a way of sending commands to the <a href="Publisher.html" tppabs="http://old.peachfuzzer.com/v3/Publisher.html">Publisher</a>. Actions can send output, receive input, or open a connection. Actions can also chang to another state in the StateModel, move data between DataModels, and call methods defined by Agents. Actions are child elements of <a href="State.html" tppabs="http://old.peachfuzzer.com/v3/State.html">State</a>.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"SendData"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"MyDataModel"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Optional data element --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Data</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"load defaults"</span> <span style="color: #009900">fileName</span><span style="color: #990000">=</span><span style="color: #FF0000">"template.bin"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
<div class="paragraph"><p><em>Attributes:</em></p></div>
<div class="ulist"><ul>
<li>
<p>
<a href="name.html" tppabs="http://old.peachfuzzer.com/v3/name.html">name</a>&#8201;&#8212;&#8201;Name of the action [optional]
</p>
</li>
<li>
<p>
<a href="Action.html#_action_types" tppabs="http://old.peachfuzzer.com/v3/Action.html#_action_types">type</a>&#8201;&#8212;&#8201;Action type [required]
</p>
</li>
<li>
<p>
<a href="when.html" tppabs="http://old.peachfuzzer.com/v3/when.html">when</a>&#8201;&#8212;&#8201;Only preform action if the expression provided evaluates to true
</p>
</li>
<li>
<p>
<a href="onComplete.html" tppabs="http://old.peachfuzzer.com/v3/onComplete.html">onComplete</a>&#8201;&#8212;&#8201;Expression to run on completion of an action
</p>
</li>
<li>
<p>
<a href="onStart.html" tppabs="http://old.peachfuzzer.com/v3/onStart.html">onStart</a>&#8201;&#8212;&#8201;Expression to run on start of an action
</p>
</li>
<li>
<p>
<a href="Action.html#_call" tppabs="http://old.peachfuzzer.com/v3/Action.html#_call">method</a>&#8201;&#8212;&#8201;Method to call [required, type=call]
</p>
</li>
<li>
<p>
<a href="Action.html#_setproperty" tppabs="http://old.peachfuzzer.com/v3/Action.html#_setproperty">property</a>&#8201;&#8212;&#8201;Property to get or set [required, type=setProperty, getProperty]
</p>
</li>
<li>
<p>
<a href="Action.html#_slurp" tppabs="http://old.peachfuzzer.com/v3/Action.html#_slurp">setXpath</a>&#8201;&#8212;&#8201;XPath for value to set [required, type=slurp]
</p>
</li>
<li>
<p>
<a href="value.html" tppabs="http://old.peachfuzzer.com/v3/value.html">value</a>&#8201;&#8212;&#8201;Value [type=slurp]
</p>
</li>
<li>
<p>
<a href="Action.html#_slurp" tppabs="http://old.peachfuzzer.com/v3/Action.html#_slurp">valueXpath</a>&#8201;&#8212;&#8201;XPath for value [type=slurp]
</p>
</li>
<li>
<p>
<a href="ref.html" tppabs="http://old.peachfuzzer.com/v3/ref.html">ref</a>&#8201;&#8212;&#8201;Reference of state to change to [type=changeState]
</p>
</li>
</ul></div>
<div class="paragraph"><p><em>Valid Child-Elements:</em></p></div>
<div class="ulist"><ul>
<li>
<p>
<a href="DataModel.html" tppabs="http://old.peachfuzzer.com/v3/DataModel.html">DataModel</a>
</p>
</li>
<li>
<p>
<a href="Data.html" tppabs="http://old.peachfuzzer.com/v3/Data.html">Data</a>
</p>
</li>
<li>
<p>
<a href="Param.html" tppabs="http://old.peachfuzzer.com/v3/Param.html">Param</a>
</p>
</li>
</ul></div>
</div>
</div>
<div class="sect1">
<h2 id="_action_types">Action Types</h2>
<div class="sectionbody">
<div class="sect2">
<h3 id="_start_implicit">start (implicit)</h3>
<div class="paragraph"><p>Start up the Publisher, this is an implicit action and is not normally needed.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"start"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_stop_implicit">stop (implicit)</h3>
<div class="paragraph"><p>Stop the Publisher, this is an implicit action and is not normally needed.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"stop"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_open_connect_implicit">open/connect (implicit)</h3>
<div class="paragraph"><p>Open and connect are aliases for each other and perform the same action.  Typically this action is implicit, for files the file must be opened or created, for sockets a connection is made.  Only when special control is required does one need to use this action.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"open"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"DataModelToWrite"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"connect"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"DataModelToSend"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_close_implicit">close (implicit)</h3>
<div class="paragraph"><p>Close is also implicit and is not normally required unless specific control is wanted.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"FileWrite"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"FileHeader"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"FileClose"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"close"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_accept">accept</h3>
<div class="paragraph"><p>Accept an incoming connection.  Not all Publishers support this action type.  This action will typically block until the incoming connection is available.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"AcceptConnection"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"accept"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"ParseIncomingPacket"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"input"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"PacketModel"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_input">input</h3>
<div class="paragraph"><p>Receive or read input from the Publisher.  Requires that a DataModel be specified to crack and contain the incoming data.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"input"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"InputModel"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_output">output</h3>
<div class="paragraph"><p>Send or write output via the Publisher.  Requires a DataModel, optionally a Data set can be provided.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                         <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"SomeDataModel"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                         <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"SomeDataModel"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                         <span style="font-weight: bold"><span style="color: #0000FF">&lt;Data</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"SomeSampleData"</span> <span style="color: #009900">fileName</span><span style="color: #990000">=</span><span style="color: #FF0000">"sample.bin"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_call">call</h3>
<div class="paragraph"><p>Call a method defined by the Publisher with optional parameters.  Not supported by all Publishers.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"call"</span> <span style="color: #009900">method</span><span style="color: #990000">=</span><span style="color: #FF0000">"openUrl"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"p1"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"in"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"Param1DataModel"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Param&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"p2"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"in"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"Param2DataModel"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Data</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"p2data"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"value"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://foo.com"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Data&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Param&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_setproperty">setProperty</h3>
<div class="paragraph"><p>Set a property. Not supported by all Publishers.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"setProperty"</span> <span style="color: #009900">property</span><span style="color: #990000">=</span><span style="color: #FF0000">"Name"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"NameModel"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_getproperty">getProperty</h3>
<div class="paragraph"><p>Get a property. Not supported by all Publishers.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"getProperty"</span> <span style="color: #009900">property</span><span style="color: #990000">=</span><span style="color: #FF0000">"Name"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"NameModel"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_slurp">slurp</h3>
<div class="paragraph"><p>Slurp is used to move data between two DataModels.  These DataModels are assigned to different Actions in a the StateModel.  A standard use case is during a protocol sequence. A sequence id or a challenge id needs to be sent back to the server. Slurp will copy the data from one action, input from the server, to the other, output to the server.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"ReceiveChallenge"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Challenge"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"SendChallenge"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Challenge"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>


<span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"ReceiveChallenge"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"input"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheReceiveChallenge"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"ReceiveChallenge"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"slurp"</span> <span style="color: #009900">valueXpath</span><span style="color: #990000">=</span><span style="color: #FF0000">"//TheReceiveChallenge//Challenge"</span> <span style="color: #009900">setXpath</span><span style="color: #990000">=</span><span style="color: #FF0000">"//TheSendChallenge//Challenge"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"SendChallenge"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheSendChallenge"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"SendChallenge"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_changestate">changeState</h3>
<div class="paragraph"><p>Change to a different state. This is most often used in conjunction with the <a href="when.html" tppabs="http://old.peachfuzzer.com/v3/when.html"><em>when</em></a> attribute.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"input"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"InputModel"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"changeState"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State2"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State2"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"OutputModel"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect2">
<h3 id="_when">when</h3>
<div class="paragraph"><p>Perform an action based on an expression. When the expression evaluates to true the action is performed. This can be used to model choices based on input or to decide if certain input or output is performed next.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InputModel"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Number</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Type"</span> <span style="color: #009900">size</span><span style="color: #990000">=</span><span style="color: #FF0000">"32"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"OutputModelA"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Number</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Type"</span> <span style="color: #009900">size</span><span style="color: #990000">=</span><span style="color: #FF0000">"32"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"11 22 33 44"</span> <span style="color: #009900">valueType</span><span style="color: #990000">=</span><span style="color: #FF0000">"hex"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"OutputModelB"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Number</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Type"</span> <span style="color: #009900">size</span><span style="color: #990000">=</span><span style="color: #FF0000">"32"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"AA BB CC DD"</span> <span style="color: #009900">valueType</span><span style="color: #990000">=</span><span style="color: #FF0000">"hex"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"InitialState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"input"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"InputModel"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"changeState"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State2"</span> <span style="color: #009900">when</span><span style="color: #990000">=</span><span style="color: #FF0000">"int(StateModel.states['InitialState'].actions[0].dataModel['Type'].InternalValue) == 2"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"changeState"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State3"</span> <span style="color: #009900">when</span><span style="color: #990000">=</span><span style="color: #FF0000">"int(StateModel.states['InitialState'].actions[0].dataModel['Type'].InternalValue) == 3"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State2"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"OutputModelA"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State3"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"OutputModelB"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/TheStateModel&gt;</span></span></tt></pre></div></div>
</div>
</div>
</div>
</div>
<div id="footnotes"></div>
<div id="footer">
<div id="footer-text">

<table width="100%">
<td><td>
<a href="javascript:if(confirm(%27http://dejavusecurity.com/  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://dejavusecurity.com/%27" tppabs="http://dejavusecurity.com/"><img src="dejavusecurity.png" tppabs="http://old.peachfuzzer.com/images/dejavusecurity.png" height="50"/></a>
</td><td>&nbsp;&nbsp;&nbsp;</td><td>

Copyright (c) <a href="javascript:if(confirm(%27http://dejavusecurity.com/  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://dejavusecurity.com/%27" tppabs="http://dejavusecurity.com/">Deja vu Security</a> <br/>
Last updated 2014-02-23 21:23:39 PST
</td>
</table>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1094513-10']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www/') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</div>
</div>
</div>
</div>
</body>
</html>
